//
//  AppDelegate.m
//  12-StoryBoard
//
//  Created by dllo on 16/7/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    //1.与xib相同的是，都属于IB开发
    //2.与Xib不同，SB的是多视图控制器管理
    //3.如果创建Single View Application会自动生成两个SB文件
    // Main.storyboard 主要的视图控制管理， 系统默认为Main
    // LaunchScreen.storyboard 启动屏幕页视图管理 （在 xcode 7 以前，生成的是.xib文件）
    //4.如果使用sb开发， 就不用创建window
    
    // Main.storyboard
    // 1.系统默认Main为整个程序的入口
    // 2.Main.sb 默认 ViewController 为整个storyboard的入口
    
    // 自定义sb
    // 工程中，可以包含多个storyboard
    // 工程中的Main.Storyboard可以修改自定义的storyboard
    // 1.让storyboard有个初始的VC
    // 2.让VC对应关联类
    // sb中的界面跳转是单向的
    //  1.UIStoryboardSegue 用来执行页面跳转
    // 2.如果要使页面跳转变为双向，需要自定义UIStoryboardSegue
    // 3.自定义完成后， 系统会自定义识别到Storyboard
    // 注意：自定义时， 必须要重写－ （void）perform方法
    
    // 系统的界面跳转
    // show 根据是否包含navigation决定跳转方式 包含为push 不包含为 模态
    // showDetail present的效果（模态效果）
    // present（模态）
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
